﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransCend.Exceptions
{
    public class SystemException : BaseException
    {
        public SystemException()
            : base(ExceptionErrorCode.ERROR)
        {
           
        }

        public SystemException(int errorCode)
            : base(errorCode)
        {
           
        }

        public SystemException(Exception e)
            : this(ExceptionErrorCode.ERROR, null, e)
        {

        }

        public SystemException(int errorCode, string message, Exception e)
            : base(errorCode, message, e)
        {

        }

        public static SystemException GetSystemException(Exception e)
        {
            return new SystemException(e);
        }

        public static SystemException GetSystemException(int errorcode, Exception e)
        {
            return new SystemException(errorcode, null, e);
        }
    }
}
